<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div class="dataTables_title">
	<div class="dataTables_title_left">按钮注释</div>
	<div class="dataTables_title_right">
		<a class="btn btn-primary"><i class="icon-flag"></i>已报名</a>
		<a class="btn btn-xs btn-waring" title="报名"><i class="icon-flag"></i>待审核</a>
		<a class="btn btn-xs btn-danger" title="报名"><i class="icon-flag">未报名</i></a>
	</div>
</div>
<table class="table table-bordered">
	<thead>
		<tr>
			<th>班级名称</th>
			<th>所属机构</th>
			<th>开始报名时间</th>
			<th>报名结束时间</th>
			<th>开班时间</th>
			<th>班级结束时间</th>
			<th>报名方式</th>
			<th style="text-align: center;">报名人数上限/已报名人数</th>
			<th>报名状态/是否通过</th>
			<th style="text-align: center;">操作</th>
		</tr>
	</thead>
	<tbody>
		<#list pageBean.resultList as c>
		<tr style="display: table-row;">
			<td>${c.name!''}</td>
			<td>${c.ocn!''}</td>
			<td><#if c.startSignTime??>${c.startSignTime?string("yyyy-MM-dd")}</#if></td>
			<td><#if c.endSignTime??>${c.endSignTime?string("yyyy-MM-dd")}</#if></td>
			<td><#if c.beginTime??>${c.beginTime?string("yyyy-MM-dd")}</#if></td>
			<td><#if c.finishTime??>${c.finishTime?string("yyyy-MM-dd")}</#if></td>
			<td><@mte.Signhow  s=false value=((c.how)!'')/></td>
			<td style="text-align: center;">
				<span style="color:fuchsia;margin-right: 5px;"><#if c.num == 0>无限制<#else>${c.num}</#if></span>/<span style="color:red;width:20px;margin-left: 5px;" >${c.numed}</span>
			</td>
			<td>
				<span style="color: blue;margin-left: 5px;">
				<#if c.isSign>您已报名<#else>您未报名</#if></span>/
				<#if c.status?? && c.status == 1>
					<span style="color:blue;">待审核</span>
				<#elseif c.status?? && c.status == 2>
					<span style="color:red;">审核不通过</span>
				<#elseif c.status?? && c.status == 3>
					<span style="color:green;">审核通过
				</#if>
			</td>
			<td style="text-align: center;">
				<#if c.isSign && c.status == 1>
				<a class="btn btn-xs btn-waring" title="待审核">
					<i class="icon-flag"></i>
				</a>
				<#elseif c.isSign && c.status != 1>
				<a class="btn btn-xs btn-primary" title="已报名">
					<i class="icon-flag"></i>
				</a>
				<#else>
				<a class="btn btn-xs btn-danger" onclick="javascript: studentSigns_est('${c.code}','${c.name}'); return false;" title="报名">
					<i class="icon-flag"></i>
				</a>
				</#if>
			</td>
		</tr>
		</#list>
	</tbody>
</table>
<#import "/freemarker/pagination.ftl" as p>
<@p.pagination pageBean 'queryStudenSign_est' />